
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGStencilChunk.h>
#include <OpenSG/OSGStencilChunkBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_StencilChunk_dump_overloads_0_2, dump, 0, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_StencilChunk_activate_overloads_1_2, activate, 1, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_StencilChunk_changeFrom_overloads_2_3, changeFrom, 2, 3)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_StencilChunk_deactivate_overloads_1_2, deactivate, 1, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_StencilChunk()
{
    scope* osg_StencilChunkBase_scope = new scope(
    class_< osg::StencilChunkBase, bases< osg::StateChunk > , boost::noncopyable >("StencilChunkBase", no_init)
//        .def_readonly("StencilFuncFieldMask", &osg::StencilChunkBase::StencilFuncFieldMask)
//        .def_readonly("StencilValueFieldMask", &osg::StencilChunkBase::StencilValueFieldMask)
//        .def_readonly("StencilMaskFieldMask", &osg::StencilChunkBase::StencilMaskFieldMask)
//        .def_readonly("StencilOpFailFieldMask", &osg::StencilChunkBase::StencilOpFailFieldMask)
//        .def_readonly("StencilOpZFailFieldMask", &osg::StencilChunkBase::StencilOpZFailFieldMask)
//        .def_readonly("StencilOpZPassFieldMask", &osg::StencilChunkBase::StencilOpZPassFieldMask)
//        .def_readonly("ClearBufferFieldMask", &osg::StencilChunkBase::ClearBufferFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::StencilChunkBase::MTInfluenceMask)
        .def("getClassType", &osg::StencilChunkBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::StencilChunkBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::StencilChunkBase::*)() )&osg::StencilChunkBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::StencilChunkBase::*)() const)&osg::StencilChunkBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::StencilChunkBase::getContainerSize)
        //.def("getStencilFunc", (GLenum& (osg::StencilChunkBase::*)() )&osg::StencilChunkBase::getStencilFunc, return_value_policy< copy_const_reference >())
        .def("getStencilFunc", (const GLenum& (osg::StencilChunkBase::*)() const)&osg::StencilChunkBase::getStencilFunc, return_value_policy< copy_const_reference >())
        //.def("getStencilValue", (osg::Int32& (osg::StencilChunkBase::*)() )&osg::StencilChunkBase::getStencilValue, return_value_policy< copy_const_reference >())
        .def("getStencilValue", (const osg::Int32& (osg::StencilChunkBase::*)() const)&osg::StencilChunkBase::getStencilValue, return_value_policy< copy_const_reference >())
        //.def("getStencilMask", (osg::UInt32& (osg::StencilChunkBase::*)() )&osg::StencilChunkBase::getStencilMask, return_value_policy< copy_const_reference >())
        .def("getStencilMask", (const osg::UInt32& (osg::StencilChunkBase::*)() const)&osg::StencilChunkBase::getStencilMask, return_value_policy< copy_const_reference >())
        //.def("getStencilOpFail", (GLenum& (osg::StencilChunkBase::*)() )&osg::StencilChunkBase::getStencilOpFail, return_value_policy< copy_const_reference >())
        .def("getStencilOpFail", (const GLenum& (osg::StencilChunkBase::*)() const)&osg::StencilChunkBase::getStencilOpFail, return_value_policy< copy_const_reference >())
        //.def("getStencilOpZFail", (GLenum& (osg::StencilChunkBase::*)() )&osg::StencilChunkBase::getStencilOpZFail, return_value_policy< copy_const_reference >())
        .def("getStencilOpZFail", (const GLenum& (osg::StencilChunkBase::*)() const)&osg::StencilChunkBase::getStencilOpZFail, return_value_policy< copy_const_reference >())
        //.def("getStencilOpZPass", (GLenum& (osg::StencilChunkBase::*)() )&osg::StencilChunkBase::getStencilOpZPass, return_value_policy< copy_const_reference >())
        .def("getStencilOpZPass", (const GLenum& (osg::StencilChunkBase::*)() const)&osg::StencilChunkBase::getStencilOpZPass, return_value_policy< copy_const_reference >())
        //.def("getClearBuffer", (osg::Int32& (osg::StencilChunkBase::*)() )&osg::StencilChunkBase::getClearBuffer, return_value_policy< copy_const_reference >())
        .def("getClearBuffer", (const osg::Int32& (osg::StencilChunkBase::*)() const)&osg::StencilChunkBase::getClearBuffer, return_value_policy< copy_const_reference >())
        .def("setStencilFunc", &osg::StencilChunkBase::setStencilFunc)
        .def("setStencilValue", &osg::StencilChunkBase::setStencilValue)
        .def("setStencilMask", &osg::StencilChunkBase::setStencilMask)
        .def("setStencilOpFail", &osg::StencilChunkBase::setStencilOpFail)
        .def("setStencilOpZFail", &osg::StencilChunkBase::setStencilOpZFail)
        .def("setStencilOpZPass", &osg::StencilChunkBase::setStencilOpZPass)
        .def("setClearBuffer", &osg::StencilChunkBase::setClearBuffer)
        .def("getBinSize", &osg::StencilChunkBase::getBinSize)
        .def("copyToBin", &osg::StencilChunkBase::copyToBin)
        .def("copyFromBin", &osg::StencilChunkBase::copyFromBin)
        .def("create", &osg::StencilChunkBase::create)
        .def("createEmpty", &osg::StencilChunkBase::createEmpty)
        .def("shallowCopy", &osg::StencilChunkBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("StencilOpZPassFieldId") = (int)osg::StencilChunkBase::StencilOpZPassFieldId;
    scope().attr("StencilFuncFieldId") = (int)osg::StencilChunkBase::StencilFuncFieldId;
    scope().attr("StencilOpZFailFieldId") = (int)osg::StencilChunkBase::StencilOpZFailFieldId;
    scope().attr("StencilValueFieldId") = (int)osg::StencilChunkBase::StencilValueFieldId;
    scope().attr("StencilOpFailFieldId") = (int)osg::StencilChunkBase::StencilOpFailFieldId;
    scope().attr("NextFieldId") = (int)osg::StencilChunkBase::NextFieldId;
    scope().attr("ClearBufferFieldId") = (int)osg::StencilChunkBase::ClearBufferFieldId;
    scope().attr("StencilMaskFieldId") = (int)osg::StencilChunkBase::StencilMaskFieldId;

    delete osg_StencilChunkBase_scope;

    class_< osg::StencilChunk, bases< osg::StencilChunkBase > , boost::noncopyable, osg::StencilChunkRefPtr >("StencilChunk", no_init)
        .def("getStaticClassId", &osg::StencilChunk::getStaticClassId)
        .def("changed", &osg::StencilChunk::changed)
        .def("dump", &osg::StencilChunk::dump, osg_StencilChunk_dump_overloads_0_2())
        .def("activate", &osg::StencilChunk::activate, osg_StencilChunk_activate_overloads_1_2())
        .def("changeFrom", &osg::StencilChunk::changeFrom, osg_StencilChunk_changeFrom_overloads_2_3())
        .def("deactivate", &osg::StencilChunk::deactivate, osg_StencilChunk_deactivate_overloads_1_2())
        .def("switchCost", &osg::StencilChunk::switchCost)
        .staticmethod("getStaticClassId")
        //.def( self < other< osg::StateChunk >() )
        //.def( self == other< osg::StateChunk >() )
        //.def( self != other< osg::StateChunk >() )
    ;


    register_ptr_to_python<osg::StencilChunkPtr>();
    implicitly_convertible<osg::StencilChunkRefPtr, osg::StencilChunkPtr>();
    implicitly_convertible<osg::StencilChunkPtr, osg::StateChunkPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::StencilChunkPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::StencilChunkPtr>);
}

